import request from '@/utils/request'

// 查询论文评审信息列表
export function listEvaluation(query) {
  return request({
    url: '/system/evaluation/list',
    method: 'get',
    params: query
  })
}

// 查询论文评审信息详细
export function getEvaluation(evaluationId) {
  return request({
    url: '/system/evaluation/' + evaluationId,
    method: 'get'
  })
}

// 新增论文评审信息
export function addEvaluation(data) {
  return request({
    url: '/system/evaluation',
    method: 'post',
    data: data
  })
}

// 修改论文评审信息
export function updateEvaluation(data) {
  return request({
    url: '/system/evaluation',
    method: 'put',
    data: data
  })
}

// 删除论文评审信息
export function delEvaluation(evaluationId) {
  return request({
    url: '/system/evaluation/' + evaluationId,
    method: 'delete'
  })
}

// 专家待接受论文（待接受)
export function lwEvaluationSubmit(data) {
  return request({
    url: '/system/paperreview/lwEvaluationSubmit',
    method: 'post',
    data: data
  })
}

// 专家审核
export function lwEvaluationReviewSubmit(data) {
  return request({
    url: '/system/paperreview/lwEvaluationReviewSubmit',
    method: 'post',
    data: data
  })
}
